from string import Template

format = 'hello %s'
format = format % ('world',)
print(format)

tmpl = Template("Hello, $who! $what enough for ya?")
print(tmpl.substitute(who='world', what='Dusty'))